package com.xzh.test;

import java.util.Scanner;

public class kaoshi_1 {
    //第一题
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个五位数：");
        int a=sc.nextInt();
        int a1=a%10;
        int a2=a%100/10;
        int a3=a%1000/100;
        int a4=a/1000%10;
        int a5=a/10000;
        if (a1==a5&&a2==a4){
            System.out.println("该数为回文数！");
        }else {
            System.out.println("该数不是回文数！");
        }
    }
}
